package cn.jc.myfile.common.exception;

import cn.jc.myfile.common.entity.result.RCode;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class GlobalException extends RuntimeException{

    private RCode rCode;

    public GlobalException(RCode rCode, String message) {
        super(message);
        setRCode(rCode);
    }

    public GlobalException(RCode rCode) {
        super();
        setRCode(rCode);
    }


}
